package net.maku.qdd.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;

/**
 * 优惠券
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */

@Data
@TableName("ticket")
public class TicketEntity {
	/**
	* 券id
	*/
	@TableId
	@TableField(value = "ticket_id")
	private Integer ticketId;

	/**
	* 券码
	*/
	@TableField(value = "ticket_code")
	private Integer ticketCode;

	/**
	* 商品 id
	*/
	@TableField(value = "goods_id")
	private Integer goodsId;

	/**
	* 商家id
	*/
	@TableField(value = "merchant_id")
	private Integer merchantId;

	/**
	* 优惠额度
	*/
	@TableField(value = "preferential")
	private Float preferential;

	/**
	* 使用限制
	*/
	@TableField(value = "limitation")
	private Integer limitation;

	/**
	* 过期时间
	*/
	@TableField(value = "dead_time")
	private LocalDateTime deadTime;

	/**
	* 生效时间
	*/
	@TableField(value = "effective_time")
	private LocalDateTime effectiveTime;

}